package com.mrbird.demo.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author jbx
 * @package_name com.mrbird.demo.config
 * @create_date 2021/2/20 16:06
 */
@Configuration
@ConfigurationProperties(prefix = "test")
@PropertySource("classpath:test.properties")
@Component
@Data
public class TestConfigBean {
    private String name;
    private int age;
}
